xend: Add a multi-reader-single-writer lock implementation
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 5 Nov 2008 10:22:19 +0000 (10:22 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 5 Nov 2008 10:22:19 +0000 (10:22 +0000)
commit4b5d0b9cfbba894389562f977f8c5a5930f1c924
treee60a4b5f6faaeab7207e8c84876aa13c3f2a6861
parent57bcfa11b151fdbb71c256fa47592fc6a535c487
xend: Add a multi-reader-single-writer lock implementation

This patch adds a reader-writer lock primitive to xend since python
does not provide it by default. The implementation is based on a
condition variable. Some test code is appended at the end of the file.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
tools/python/xen/util/rwlock.py [new file with mode: 0644]